<?php 
	$path = array('Главная');
	require_once('header.inc'); 
?>
	

<div class=grid>
	<table width=100%>
		<?php
			require_once('../db.inc');
			
			$q = new Query($db);
			$q->exec('
				SELECT name, view_link, descr 
				FROM cf_categories
				ORDER BY sort_order, id
			');
			
			while ($q->fetch()) 
			{
				$url = $q->at(1) . '?name=' . $q->at(0);
				$descr = $q->at(2);
				echo
					'<tr>'.
						'<td width=100%>'.
							"<a href=javascript:go('$url')>$descr</a>".
						'</td>'.
					'</tr>';
			}
		?>
	</table>
</div>


<?php require_once('footer.inc'); ?>